package com.fept.msgcore.msgserver.common;

/**
 * Created by Srma on 2/10/2017.
 */
public class ServerInnerSettings {

    static private final String VERSION_MAIN = "1";
    static private final String VERSION_MINOR = "0";
    static private final String VERSION_BUILD = "1";
    static private final String VERSION_SUFFIX = "test";

    static public final String SYATEM_NAME = "msgcore";

    static public final String VERSION_CODE = VERSION_MAIN + "."
            + VERSION_MINOR + "." + VERSION_BUILD + "-" + VERSION_SUFFIX;

    static private int maxConcurrentClients = 50000;
    static private int maxInterconnectionServers = 5;

    static private boolean validateFrame = true;

    /**
     * 默认连接空闲常量
     */
    static private int clientReadTimeOut = 90;
    static private int clientWriteTimeOut = 90;

    static private long startTimestamp = System.currentTimeMillis();

    /**
     *
     * @return
     */
    public static boolean isValidateFrame() {
        return validateFrame;
    }

    /**
     * @return the maxConcurrentClients
     */
    public static int getMaxConcurrentClients() {
        return maxConcurrentClients;
    }


    /**
     * @return the maxInterconnectionServers
     */
    public static int getMaxInterconnectionServers() {
        return maxInterconnectionServers;
    }

    /**
     * @return the clientReadTimeOut
     */
    public static int getClientReadTimeOut() {
        return clientReadTimeOut;
    }

    /**
     * @return the clientWriteTimeOut
     */
    public static int getClientWriteTimeOut() {
        return clientWriteTimeOut;
    }

    /**
     * @return the startTimestamp
     */
    public static long getStartTimestamp() {
        return startTimestamp;
    }
}
